<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>我发布的房子</title>
    <link rel="stylesheet" href="/static/layui/css/layui.css" media="all"/>
</head>
<body>
<fieldset class="layui-elem-field layui-field-title">
    <legend id="cloudfieldTitle">我发布的房子</legend>
</fieldset>
<div class="layui-fluid" style="margin-top: 2%;">
    <div class="layui-btn-container AllBtnController">
        <a class="layui-btn" style="margin-left: 75%; width: 10%;" data-type="findHouseInfo">查&nbsp;&nbsp;&nbsp;&nbsp;询</a>
        <a class="layui-btn layui-btn-danger" style="width: 10%;" data-type="deleteHouseInfo">批量删除</a>
    </div>
</div>
<div class="layui-fluid">
    <table class="layui-hide" id="houseInfoTable" lay-filter="houseInfoTable"></table>
</div>

<div class="layui-fluid" id="updateProperty" hidden>
    <form class="layui-form" action="" style="margin-top: 5%">
        <div class="layui-form-item" id="divId">
            <label class="layui-form-label">ID</label>
            <div class="layui-input-block">
                <input type="text" name="id" id="id" required  lay-verify="required" placeholder="请输入内容" autocomplete="off" class="layui-input">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">电话</label>
            <div class="layui-input-block">
                <input type="text" name="phone" id="phone" required  lay-verify="required" placeholder="请输入内容" autocomplete="off" class="layui-input">
            </div>
        </div>
        <div class="layui-form-item" id="expireTimeId">
            <label class="layui-form-label">过期时间</label>
            <div class="layui-input-block">
                <input class="layui-input" id="expireTime" placeholder="yyyy-MM-dd HH:mm:ss" type="text">
            </div>
        </div>

        <div class="layui-form-item" id="expireTimeScopeId" hidden>
            <label class="layui-form-label">到期范围</label>
            <div class="layui-input-inline" style="width: 25%;">
                <input type="text" class="layui-input" id="expireTimeScope" placeholder=" - ">
            </div>
        </div>

        <div class="layui-form-item">
            <label class="layui-form-label">状态</label>
            <div class="layui-input-block">
                <select id="status" name="status" lay-verify="required">
                <#list cloudStatus as status>
                    <option value="${status.type}">${status.name}</option>
                </#list>
                </select>
            </div>
        </div>
        <div class="layui-form-item updateProperty">
            <div class="layui-input-block">
                <a  class="layui-btn" id="updateInfo"  data-type="updateInfo">确认更新</a>
                <a class="layui-btn layui-btn-primary" data-type="resetInfo">重置</a>
            </div>
        </div>
    </form>
</div>

<div class="layui-fluid" id="houseDetail" hidden>
    <form class="layui-form" action="" style="margin-top: 3%;">
        <div class="layui-form-item" style="margin-left: 80%;">
            <label class="layui-form-label">开启修改</label>
            <div class="layui-input-block">
                <input id="openSwitch" type="checkbox" name="switch" lay-skin="switch" lay-text="ON|OFF" lay-filter="isUpdate">
            </div>
        </div>
        <div class="layui-form-item" style="margin-bottom: 5%;">
            <label class="layui-form-label">轮播图</label>
            <div class="layui-input-block">
                <div class="layui-carousel" id="photos" lay-filter="photos">
                    <div id="photoItem" carousel-item></div>
                </div>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">房子名称</label>
            <div class="layui-input-block">
                <input type="text" name="detail_houseName" id="detail_houseName" required  lay-verify="required" placeholder="请输入..." autocomplete="off" class="layui-input">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">详细地址</label>
            <div class="layui-input-block">
                <input type="text" name="detail_address" id="detail_address" required  lay-verify="required" placeholder="请输入..." autocomplete="off" class="layui-input">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">价格／月</label>
            <div class="layui-input-block">
                <input type="text" name="detail_price" id="detail_price" required  lay-verify="required" placeholder="请输入..." autocomplete="off" class="layui-input">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">出租类型</label>
            <div class="layui-input-block">
                <input type="radio" name="detail_type" value="0" title="整租">
                <input type="radio" name="detail_type" value="1" title="合租">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">户型</label>
            <div class="layui-input-block">
                <select id="detail_select_houseType" name="detail_select_houseType" lay-verify="required">
                    <option value="0">一房一厅</option>
                    <option value="1">两房一厅</option>
                    <option value="2">三房一厅</option>
                    <option value="3">单间</option>
                    <option value="4">其他</option>
                </select>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">装修</label>
            <div class="layui-input-block">
                <select id="select_renovation" name="detail_select_renovation" lay-verify="required">
                    <option value="0">精装修</option>
                    <option value="1">简单装修</option>
                    <option value="2">毛坯</option>
                </select>
            </div>
        </div>
        <div class="layui-form-item layui-form-text">
            <label class="layui-form-label">详细信息</label>
            <div class="layui-input-block">
                <textarea name="detail_txt" id="detail_txt" placeholder="请输入..." class="layui-textarea"></textarea>
            </div>
        </div>
        <div class="layui-form-item">
            <div class="layui-inline">
                <label class="layui-form-label">水费</label>
                <div class="layui-input-inline" style="width: 150px;">
                    <input type="text" id="detail_waterRate" name="detail_waterRate" placeholder="￥" autocomplete="off" class="layui-input">
                </div>
                <label class="layui-form-label">电费</label>
                <div class="layui-input-inline" style="width: 150px;">
                    <input type="text" id="detail_electricityFee" name="detail_electricityFee" placeholder="￥" autocomplete="off" class="layui-input">
                </div>
                <label class="layui-form-label">其他费用</label>
                <div class="layui-input-inline" style="width: 150px;">
                    <input type="text" id="detail_extralFee" name="detail_extralFee" placeholder="￥" autocomplete="off" class="layui-input">
                </div>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">其他</label>
            <div class="layui-input-block">
                <input type="checkbox" name="detail_extralData" value="0" title="wifi">
                <input type="checkbox" name="detail_extralData" value="1" title="宽带" >
                <input type="checkbox" name="detail_extralData" value="2" title="独立卫生间">
                <input type="checkbox" name="detail_extralData" value="3" title="阳台">
                <input type="checkbox" name="detail_extralData" value="4" title="空调">
                <input type="checkbox" name="detail_extralData" value="5" title="冰箱">
                <input type="checkbox" name="detail_extralData" value="6" title="家具齐全">
            </div>
        </div>
        <div class="layui-form-item" id="uploadDiv">
            <div class="layui-input-block">
                <div class="layui-upload carouselInfoClass">
                    <button type="button" class="layui-btn" id="detail_batchUpload">多图片上传</button>
                    <a class="layui-btn layui-btn-normal" id="detail_confirmUpload">确认上传</a>
                    <blockquote class="layui-elem-quote layui-quote-nm" style="margin-top: 10px;">
                        预览效果：
                        <div class="layui-upload-list" id="detail_showList"></div>
                    </blockquote>
                </div>
            </div>
        </div>
        <div class="layui-form-item">
            <div class="layui-input-block confirmUpdateHouse">
                <a class="layui-btn layui-btn-normal" id="detail_confirmbtn" data-type="detail_updateDetail">确认更新</a>
            </div>
        </div>
    </form>
</div>

<div class="layui-fluid" id="addOrderView" hidden>
    <fieldset class="layui-elem-field layui-field-title">
        <legend id="fieldTitle">下单</legend>
    </fieldset>
    <form class="layui-form" action="" style="margin-top: 2%">
        <div class="layui-form-item">
            <label class="layui-form-label">甲方</label>
            <div class="layui-input-block">
                <input disabled type="text" name="add_landlordId" id="add_landlordId" required  lay-verify="required" placeholder="请输入内容" autocomplete="off" class="layui-input">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">乙方</label>
            <div class="layui-input-block">
                <input type="text" name="add_tenantId" id="add_tenantId" required  lay-verify="required" placeholder="请输入内容" autocomplete="off" class="layui-input">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">房子ID</label>
            <div class="layui-input-block">
                <input disabled type="text" name="add_hourseId" id="add_hourseId" required  lay-verify="required" placeholder="请输入内容" autocomplete="off" class="layui-input">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">人数</label>
            <div class="layui-input-block">
                <input type="text" name="add_number" id="add_number" required  lay-verify="required|number" placeholder="请输入内容" autocomplete="off" class="layui-input">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">租金</label>
            <div class="layui-input-block">
                <input type="text" name="add_rent" id="add_rent" required  lay-verify="required|number" placeholder="请输入内容" autocomplete="off" class="layui-input">
            </div>
        </div>
        <div class="layui-form-item">
            <div class="layui-inline">
                <label class="layui-form-label">水费</label>
                <div class="layui-input-inline" style="width: 150px;">
                    <input type="text" id="add_waterRate" required  lay-verify="required|number" name="add_waterRate" placeholder="￥" autocomplete="off" class="layui-input">
                </div>
                <label class="layui-form-label">电费</label>
                <div class="layui-input-inline" style="width: 150px;">
                    <input type="text" id="add_electricityFee"  name="add_electricityFee" required  lay-verify="required|number" placeholder="￥" autocomplete="off" class="layui-input">
                </div>
                <label class="layui-form-label">其他费用</label>
                <div class="layui-input-inline" style="width: 150px;">
                    <input type="text" id="add_extralFee" name="add_extralFee" required  lay-verify="required|number" placeholder="￥" autocomplete="off" class="layui-input">
                </div>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">交租时间</label>
            <div class="layui-input-block">
                <input type="text" name="add_payRentTime" id="add_payRentTime" required  lay-verify="required" placeholder="请输入内容" autocomplete="off" class="layui-input">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">入住时间</label>
            <div class="layui-input-inline">
                <input class="layui-input" name="add_moveTime" id="add_moveTime" placeholder="yyyy-MM-dd HH:mm:ss" type="text">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">是否长期</label>
            <div class="layui-input-block">
                <input name="add_longRent" value="长期" title="长期" checked="" type="radio">
                <input name="add_longRent" value="短期" title="短期" type="radio">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">租期</label>
            <div class="layui-input-block">
                <input type="text" name="add_lease" id="add_lease" required  lay-verify="required" placeholder="请输入内容" autocomplete="off" class="layui-input">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">生效时间</label>
            <div class="layui-input-inline">
                <input class="layui-input" id="add_effectTime" name="add_effectTime" placeholder="yyyy-MM-dd HH:mm:ss" type="text">
            </div>
        </div>
        <div class="layui-form-item layui-form-text">
            <label class="layui-form-label">成员信息</label>
            <div class="layui-input-block">
                <textarea name="add_MemberIdCard" id="add_MemberIdCard" required  lay-verify="required" placeholder="请按此格式,中间不要出现空格,多个成员用英文';'和英文','隔开:姓名,身份证号码;姓名,身份证号码;姓名,身份证号码;..." class="layui-textarea"></textarea>
            </div>
        </div>
        <div class="layui-form-item layui-form-text">
            <label class="layui-form-label">其他说明</label>
            <div class="layui-input-block">
                <textarea name="add_txt" id="add_txt" placeholder="请输入..." class="layui-textarea"></textarea>
            </div>
        </div>
        <div class="layui-form-item">
            <div class="layui-input-block">
                <button class="layui-btn" lay-submit lay-filter="addOrderBtn">立即提交</button>
                <button type="reset" class="layui-btn layui-btn-primary">重置</button>
            </div>
        </div>
    </form>
</div>

<script src="/static/js/html5.min.js"></script>
<script src="/static/js/respond.min.js"></script>
<script type="text/javascript" src="/static/layui/layui.js"></script>
<script type="text/javascript" src="/static/js/jquery-3.2.1.min.js"></script>
<script type="text/javascript" src="/static/js/front/houseInfoList.js"></script>
<script type="text/html" id="oreationBtn">
    <a class="layui-btn layui-btn-xs" lay-event="detail">详情</a>
    <a class="layui-btn layui-btn-normal layui-btn-xs" lay-event="update">更新</a>
    <a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="del">删除</a>
    <a class="layui-btn layui-btn-warm layui-btn-xs" lay-event="push">发单</a>
</script>
</body>
</html>